package com.example.profile.model;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-11-22
 * Time: 16:43
 */

@Component
@Data
@ConfigurationProperties(prefix = "maptypes")
public class MapConfig {

//    这里的maptypes和map要严格和配置文件中的变量名称保持一致
    private Map<String,String> map;
}
